package testing_package;



public class ThreadA {
	
		
		public static void main(String[] args) {
		
			try {
			ThreadB b=new ThreadB();
			
			b.start();
			b.wait();  /* [b]Line AAAA[/b]	*/		
                               b.game(b);
			
			}
			
			
			
			catch(Exception hj) {
				
			}
			
		
	}
	
	
}

class ThreadB extends Thread {
	
	
	public void run() {
		System.out.println("52 "+Thread.currentThread().getName());
		
		this.game(this);
				
		
	    }
	
	public synchronized void game(ThreadB h) {
		try {
		
			if (Thread.currentThread().getName().equals("main")) {
			h.wait();  /*[b] Line BBBB[/b]*/		}
				System.out.println("A great game is here:::::"+Thread.currentThread().getName());
		
		if (Thread.currentThread().getName().equals("Thread-0")) {
			h.notify();
			}
		}
		catch(Exception kk) {
			
		}
		
		
		}
	

}

